import request from '@/utils/request'

export function list(data) {
  return request({
    url: '/system/space/list',
    method: 'post',
    data: data
  })
}
export function addOrUpdate(data) {
  return request({
    url: '/system/space/addOrEdit',
    method: 'post',
    data: data
  })
}
export function getInfoDisk(data) {
  return request({
    url: '/system/company/getInfoDisk/' + data,
    method: 'get'
  })
}
export function configKey(data) {
  return request({
    url: '/system/space/configKey/sys.space.restrict',
    method: 'get'
  })
}
export function addOrEdit(data) {
  return request({
    url: '/system/space/edit',
    method: 'post',
    data: data
  })
}
export function spaceDict() {
  return request({
    url: '/system/dict/data/type/sys_disk_space',
    method: 'get'
  })
}

// export function remove(data) {
//   return request({
//     url: '/system/tenant/report/delete',
//     method: 'post',
//     data: { deleteIds: data }
//   })
// }
// export function getReportUrl(data) {
//   return request({
//     url: '/system/tenant/report/getReportUrl',
//     method: 'post',
//     data: data
//   })
// }

